<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
	<script>
	    $(function () {
			$('#addnew').click(function(){
					window.location.href="user_add.jsp";
			 });
	    });
		function del(id){
			if(confirm("确定要删除吗？"))
			{
				var url = "user_index.jsp";
				window.location.href=url;	
			}
		}
	</script>
    <style type="text/css">body {padding-bottom: 40px;}.sidebar-nav {padding: 9px 0;}
        @media (max-width: 980px) {.navbar-text.pull-right{float: none;padding-left: 5px;padding-right: 5px;}}
    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="user_index.jsp" method="get">    
    用户名称：
    <input type="text" name="username" id="username"class="abc input-default" placeholder="" value="">&nbsp;&nbsp;  
    <button type="submit" class="btn btn-primary">查询</button>&nbsp;&nbsp; 
    <button type="button" class="btn btn-success" id="addnew">新增用户</button>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>用户id</th>
        <th>用户名称</th>
        <th>真实姓名</th>
        <th>最后登录时间</th>
        <th>操作</th>
    </tr>
    </thead>
	     <tr>
            <td>2</td>
            <td>admin</td>
            <td>管理员</td>
            <td></td>
            <td>
                <a href="user_edit.jsp">编辑</a>
                <!-- 角色id -->
                <a href="javascript:del()">删除</a>                
            </td>
        </tr>	
</table>
</body>
</html>
